public class Main {
    public static void main(String[] args) {
        // 创建动物实例
        Mammal m1 = new Mammal("熊猫", 2);
        Insect i1 = new Insect("蜜蜂", 1);
        Bird b1 = new Bird("火烈鸟", 3);
        Oviparous o1 = new Oviparous("泽龟", 4);

        // 创建饲养员实例
        Person p1 = new Zookeeper("饲养员张三", 40);
        Person p2 = new Zookeeper("饲养员李四", 30);

        p1.feedAnimal(m1, "竹子");
        m1.swim();
        m1.climb();

        p1.feedAnimal(i1, "糖水");
        i1.fly();

        p2.feedAnimal(b1, "水果");
        b1.fly();
        b1.swim();

        p2.feedAnimal(o1, "鱼");
        o1.climb();
        o1.swim();
    }
}